package com.boot.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.common.to.HasStockTo;
import com.boot.common.utils.PageUtils;
import com.boot.mall.ware.entity.WareSkuEntity;
import com.boot.mall.ware.vo.WareSkuLockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author huihui
 * @email 2565036109@qq.com
 * @date 2021-05-06 19:36:17
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils pageSku(Map<String, Object> params);

    List<HasStockTo> hasStock(List<Long> skuIds);

    Boolean lockSkuStock(WareSkuLockVo vo);

    void releaseStock(String orderSn, Integer status);

}

